package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsGLInt;
import com.yudean.esb.mapper.erp.ErpIdsGLIntMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpIdsGLIntDao {

    @Resource
    public ErpIdsGLIntMapper erpIdsGLIntMapper;

    public int insertSelective(ErpIdsGLInt record) {
        return erpIdsGLIntMapper.insertSelective(record);
    }

    public int batchInsertErpIdsGLIntData(List<ErpIdsGLInt> erpIdsGLIntList) {
        return erpIdsGLIntMapper.batchInsertErpIdsGLIntData(erpIdsGLIntList);
    }

    public int deleteGLIntByControlId(long controlId) {
        return erpIdsGLIntMapper.deleteGLIntByControlId(controlId);
    }
}
